<template>
  <el-dialog width="60%" title="新增配货出库单" :visible.sync="dialogFormVisible" @open="dkbj()" center>
    <el-form :model="form" :inline="true" ref="form">
      <el-form-item label="状态:" prop="status">
        <el-select style="width: 200px" v-model="form.status" placeholder="请选择商品类型" disabled>
          <el-option label="已通过" value="allpure"></el-option>
          <el-option label="待审核" value="puregold"></el-option>
          <el-option label="未通过" value="mosaicclass"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="单据编号:" prop="documentNum">
        <el-input style="width: 200px" v-model="form.documentNum" disabled></el-input>
      </el-form-item>
      <el-form-item label="创单日期:" prop="createDate">
        <el-input style="width: 200px" v-model="form.createDate" disabled></el-input>
      </el-form-item>

      <el-form-item label="出库门店:" prop="outboundStore">
        <el-select style="width: 450px" v-model="form.outboundStore" placeholder="请选择出库类型">
          <el-option label="" value="allpure"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="出库柜台:" prop="outboundCounter">
        <el-select style="width: 450px" v-model="form.outboundCounter" placeholder="请选择柜台/类库名称">
          <el-option label="" value="allpure"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="入库门店:" prop="inboundStore">
        <el-select style="width: 450px" v-model="form.inboundStore" placeholder="请选择入库类型">
          <el-option label="" value="allpure"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="入库柜台:" prop="inboundcounter">
        <el-select style="width: 450px" v-model="form.inboundcounter" placeholder="请选择柜台/类库名称">
          <el-option label="" value="allpure"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="商品类型:" prop="category">
        <el-select style="width: 200px" v-model="form.category" placeholder="请选择商品类型">
          <el-option label="素金类" value="allpure"></el-option>
          <el-option label="装饰类" value="puregold"></el-option>
          <el-option label="其他类" value="mosaicclass"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="数量:" prop="count">
        <el-input style="width: 200px" v-model="form.count"></el-input>
      </el-form-item>
      <el-form-item label="重量:" prop="totalWeight">
        <el-input style="width: 200px" v-model="form.totalWeight"></el-input>
      </el-form-item>
      <el-form-item label="成本:" prop="totalPrice">
        <el-input style="width: 200px" v-model="form.totalPrice"></el-input>
      </el-form-item>
      <el-form-item label="系数:" prop="series">
        <el-input style="width: 200px" v-model="form.series"></el-input>
      </el-form-item>
      <el-form-item label="标签金额:" prop="LabelTotalPrice">
        <el-input style="width: 200px" v-model="form.LabelTotalPrice"></el-input>
      </el-form-item>
      <el-form-item label="来源:" prop="source">
        <el-input style="width: 200px" v-model="form.source"></el-input>
      </el-form-item>
      <el-form-item label="创单人:" prop="createPerson">
        <el-input style="width: 200px" v-model="form.createPerson"></el-input>
      </el-form-item>
      <el-form-item label="审批人:" prop="approver">
        <el-input style="width: 200px" v-model="form.approver"></el-input>
      </el-form-item>
      <el-form-item label="审批日期:" prop="approvalDate">
        <el-input style="width: 200px" v-model="form.approvalDate"></el-input>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="bjqx('form')">取 消</el-button>
      <el-button type="primary" @click="bjwc('form')">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
// import { UpdateDoosApi } from '@/http/doos'
export default {
  name: 'handleEdit',
  data() {
    return {
      dialogFormVisible: false,
      form: {
        goodsId: '',
        status: '',
        documentNum: '',
        createDate: '',
        outboundStore: '',
        outboundCounter: '',
        inboundStore: '',
        inboundcounter: '',
        category: '',
        count: '',
        totalWeight: '',
        totalPrice: '',
        series: '',
        LabelTotalPrice: '',
        source: '',
        createPerson: '',
        approver: '',
        approvalDate: ''
      }
    }
  },
  created() {
    this.$bus.$on('bj', (bool, gl) => {

      this.dialogFormVisible = bool
      this.form = gl[0]
    })
  },
  methods: {
    bjqx(formName) {
      this.dialogFormVisible = false
      this.$refs[formName].resetFields()
    },
    bjwc(formName) {
      this.$refs[formName].resetFields()
    },
    dkbj() {
      this.dialogFormVisible = true
    },
    rowStyle() {
      return 'text-align:center'
    },
    headStyle() {
      return 'text-align:center'
    }
  }
}
</script>

<style lang="scss" scoped>
</style>